﻿namespace Traffic.Entity;

/// <summary>
/// 接送单组订单序列
/// </summary>
public partial class PickupOrderGroupsOrderDetail
{
    public int Id { get; set; }

    /// <summary>
    /// 组别ID，对应PickupOrderGroups.ID
    /// </summary>
    public int GroupId { get; set; }

    /// <summary>
    /// 订单ID
    /// </summary>
    public int OrderId { get; set; }

    /// <summary>
    /// 起始地址
    /// </summary>
    public string? StartAddr { get; set; }

    /// <summary>
    /// 结束地址
    /// </summary>
    public string? EndAddr { get; set; }

    /// <summary>
    /// 接送时间
    /// </summary>
    public DateTime PickupDate { get; set; }

    /// <summary>
    /// 预估开始时间
    /// </summary>
    public DateTime? EstimateStartTime { get; set; }

    /// <summary>
    /// 预估结束时间
    /// </summary>
    public DateTime? EstimateEndTime { get; set; }

    /// <summary>
    /// 实际开始时间
    /// </summary>
    public DateTime? InFactStartTime { get; set; }

    /// <summary>
    /// 实际完成时间
    /// </summary>
    public DateTime? InFactEndTime { get; set; }

    /// <summary>
    /// 始发地点
    /// </summary>
    public string? FromAddress { get; set; }

    /// <summary>
    /// 到达地点
    /// </summary>
    public string? ToAddress { get; set; }

    /// <summary>
    /// 花费时间（分钟）
    /// </summary>
    public double EstimateSpendTime { get; set; }

    /// <summary>
    /// 里程数
    /// </summary>
    public double EstimateTotalMileage { get; set; }

    /// <summary>
    /// 实际使用时间
    /// </summary>
    public double InFactSpendTime { get; set; }

    /// <summary>
    /// 实际公里数
    /// </summary>
    public double InfactTotalMileage { get; set; }

    /// <summary>
    /// 客户评分
    /// </summary>
    public int GuestMark { get; set; }

    /// <summary>
    /// 客户评语
    /// </summary>
    public string? GuestComment { get; set; }

    /// <summary>
    /// 作业进度   0：未开始   1：进行中  2：已完成   3：客户超时   4：回派
    /// </summary>
    public int WorkState { get; set; }

    /// <summary>
    /// 修改信息
    /// </summary>
    public string? EditMsg { get; set; }

    /// <summary>
    /// 状态  默认1正常  0作废
    /// </summary>
    public bool Status { get; set; }
}
